﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Tippelde.Web.Controllers
{
    public class ErrorController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.ErrorCode = Response.StatusCode;
            return View("Error");
        }

        public ActionResult NotFound()
        {
            Response.StatusCode = 404;
            ViewBag.ErrorCode = Response.StatusCode;
            return View("NotFound");
        }

        public ActionResult Throw()
        {
            throw new Exception("Hopp, itt egy hiba dobódott.");
        }
    }
}